﻿
namespace Vtron.LEDCorrective.Domain
{
    /// <summary>
    /// 校正参数信息的实体类
    /// </summary>
    public sealed class CorrectiveInfo
    {
        #region Fields

        private static readonly CorrectiveInfo instance = new CorrectiveInfo();
        private LedSenderInfo ledSenderInfo;
        private DatabaseInfo databaseInfo;
        private ScreenInfo screenInfo;

        #endregion

        #region Constructors

        private CorrectiveInfo()
        {
        }

        #endregion

        #region Properties

        /// <summary>
        /// 单例
        /// </summary>
        public static CorrectiveInfo Instance
        {
            get
            {
                return instance;
            }
        }

        /// <summary>
        /// LED发送器信息
        /// </summary>
        public LedSenderInfo LedSenderInfo
        {
            get
            {
                return ledSenderInfo;
            }
            set
            {
                ledSenderInfo = value;
            }
        }

        /// <summary>
        /// 数据库信息
        /// </summary>
        public DatabaseInfo DatabaseInfo
        {
            get
            {
                return databaseInfo;
            }
            set
            {
                databaseInfo = value;
            }
        }

        /// <summary>
        /// 显示屏信息
        /// </summary>
        public ScreenInfo ScreenInfo
        {
            get
            {
                return screenInfo;
            }
            set
            {
                screenInfo = value;
            }
        }

        #endregion
    }
}
